/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mynet;

import java.io.*;
import java.net.*;

public class server
{
    public static void main(String args[])
    {
        ServerSocket s = null;
        try
        {
            s = new ServerSocket(5432);
        }
        catch(IOException e)
        {
            e.printStackTrace();
        }
        while(true)
        {
        try
        {
            Socket s1=s.accept();
            OutputStream so=s1.getOutputStream();
            BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(so));
            //BufferedReader brc=new BufferedReader(new InputStreamReader(System.in));
            //String str=brc.readLine();
            //System.out.println(str);
            bw.write("hie");
            bw.close();
            s1.close();
        }
        catch(IOException e)
        {
            e.printStackTrace();
        }
    }
    }

}
